<?php
include('init.php');

define('T', 90);

$grupo = array();

$grupo[] = array(
new Player(array('EN' => 99, 'VE' => 72, 'RE' => 40, 'AG' => 30, 'CA' => 53, 'MO' => 38, 'EF' => 79, 'ME' => 59, 'PX' => 1, 'PY' => 30, 'ROL' => 'P')),    
new Player(array('EN' => 99, 'VE' => 68, 'RE' => 80, 'AG' => 59, 'CA' => 53, 'MO' => 47, 'EF' => 67, 'ME' => 59, 'PX' => 20, 'PY' => 10, 'ROL' => 'D')),    
new Player(array('EN' => 99, 'VE' => 60, 'RE' => 90, 'AG' => 78, 'CA' => 53, 'MO' => 58, 'EF' => 43, 'ME' => 59, 'PX' => 20, 'PY' => 25, 'ROL' => 'D')),    
new Player(array('EN' => 99, 'VE' => 70, 'RE' => 78, 'AG' => 90, 'CA' => 53, 'MO' => 63, 'EF' => 52, 'ME' => 59, 'PX' => 20, 'PY' => 35, 'ROL' => 'D')),    
new Player(array('EN' => 99, 'VE' => 69, 'RE' => 62, 'AG' => 84, 'CA' => 53, 'MO' => 84, 'EF' => 88, 'ME' => 59, 'PX' => 20, 'PY' => 50, 'ROL' => 'D')),    
new Player(array('EN' => 99, 'VE' => 68, 'RE' => 95, 'AG' => 55, 'CA' => 53, 'MO' => 35, 'EF' => 59, 'ME' => 59, 'PX' => 45, 'PY' => 10, 'ROL' => 'M')),    
new Player(array('EN' => 99, 'VE' => 80, 'RE' => 60, 'AG' => 65, 'CA' => 53, 'MO' => 56, 'EF' => 96, 'ME' => 59, 'PX' => 45, 'PY' => 20, 'ROL' => 'M')),    
new Player(array('EN' => 99, 'VE' => 90, 'RE' => 70, 'AG' => 46, 'CA' => 53, 'MO' => 68, 'EF' => 54, 'ME' => 59, 'PX' => 45, 'PY' => 30, 'ROL' => 'M')),    
new Player(array('EN' => 99, 'VE' => 68, 'RE' => 85, 'AG' => 52, 'CA' => 53, 'MO' => 82, 'EF' => 76, 'ME' => 59, 'PX' => 45, 'PY' => 40, 'ROL' => 'M')),    
new Player(array('EN' => 99, 'VE' => 70, 'RE' => 73, 'AG' => 45, 'CA' => 53, 'MO' => 56, 'EF' => 63, 'ME' => 59, 'PX' => 85, 'PY' => 20, 'ROL' => 'A')),    
new Player(array('EN' => 99, 'VE' => 72, 'RE' => 92, 'AG' => 78, 'CA' => 53, 'MO' => 78, 'EF' => 54, 'ME' => 59, 'PX' => 85, 'PY' => 40, 'ROL' => 'A')),    
););

$env = array(
    'campo' => array(100, 60),
    'obj' => array(50, 30),
);

for($t = 0; $t <= 90; $t++) {
    out("T -> $t");
    foreach($grupos as $grupo) {
        //out("M -> $grupo");
        foreach($grupo as $miembro) {
            //out("M -> " . var_export($miembro, true));
        }
    }    
}

function getMiembroAction($miembro, $area) {
}

function out($string) {
    echo "$string\n";
}



